package org.example.contestb.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("tb_doctor")
public class Doctor {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "avatar")
    private String avatar;

    @TableField(value = "age")
    private Integer age;

    @TableField(value = "email")
    private String email;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "gender")
    private String gender;

    @TableField(value = "employment_time")
    private Date employmentTime;

    @TableField(value = "introduction")
    private String introduction;

    @TableField(value = "username")
    private String username;

    @TableField(value = "password")
    private String password;

    @TableField(value = "uuid")
    private String uuid;

    @TableField(value = "employment_address")
    private String employmentAddress;

    @TableField(value = "department")
    private String department;

    @TableField(value = "work_address")
    private String workAddress;

    //0禁用，1启用
    @TableField(value = "status")
    private Integer status;

    //0管理员，1医生
    @TableField(value = "role")
    private Integer role;
}

